package com.whw.fy.service.impl;

import com.whw.fy.entity.Message;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.whw.fy.mapper.ScheduleDataNoMapper;
import com.whw.fy.entity.ScheduleDataNo;
import com.whw.fy.service.ScheduleDataNoService;

@Service
public class ScheduleDataNoServiceImpl implements ScheduleDataNoService {

    @Resource
    private ScheduleDataNoMapper scheduleDataNoMapper;

    @Override
    public Message deleteByPrimaryKey(Integer scheduleDataNoId) {
        return scheduleDataNoMapper.deleteByPrimaryKey(scheduleDataNoId) > 0 ? Message.success(null) : Message.fail(null);
    }

    @Override
    public Message insert(ScheduleDataNo record) {
        return scheduleDataNoMapper.insert(record) > 0 ? Message.success(null) : Message.fail(null);
    }

    @Override
    public Message insertSelective(ScheduleDataNo record) {
        return scheduleDataNoMapper.insertSelective(record) > 0 ? Message.success(null) : Message.fail(null);
    }

    @Override
    public Message selectByPrimaryKey(Integer scheduleDataNoId) {
        return Message.success(null).add(scheduleDataNoMapper.selectByPrimaryKey(scheduleDataNoId));
    }

    @Override
    public Message updateByPrimaryKeySelective(ScheduleDataNo record) {
        return scheduleDataNoMapper.updateByPrimaryKeySelective(record) > 0 ? Message.success(null) : Message.fail(null);
    }

    @Override
    public Message updateByPrimaryKey(ScheduleDataNo record) {
        return scheduleDataNoMapper.updateByPrimaryKey(record) > 0 ? Message.success(null) : Message.fail(null);
    }

    @Override
    public Message selectALL() {
        return Message.success(null).add(scheduleDataNoMapper.selectALL());
    }


}

